/*
 * @Author: Zhang Wei
 * @Date: 2024-05-27 23:01:24
 * @LastEditors: Zhang Wei
 * @LastEditTime: 2024-05-27 23:04:41
 * @FilePath: \schulte-meter\miniprogram\pages\game-record\logs.ts
 * @Description: 
 * @Word: There is nothing either good or bad, but thinking makes it so.
 */
import { GameRecord } from '@utils/GameRecord/GameRecord';
// import dayjs from 'dayjs';

const gameRecord = new GameRecord();

Component({
  data: {
    logs: [],
  },
  lifetimes: {
    attached() {
      this.setData({
        logs: (gameRecord.getData() || []).map((item: IGameRecordItem) => {
          return item
        }),
      })
    }
  },
})
